import request from "@/util/request";
export const getHomeBanner = () => {
    return request({
        url: '/api/slider/getSliders',
        method: 'get'
    });
};
export const getMostNew = (data) => {
    return request({
        url: '/api/course/mostNew',
        method: 'post',
        data
    });
};
export const getFirstCategory = () => {
    return request({
        url: '/api/course/category/getFirstCategorys'
    });
};
export const getSecondCategory = (id) => {
    return request({
        url: '/api/course/category/getSecondCategorys',
        method: 'get',
        params: { categoryId: id }
    });
};
export const getCourseList = (data) => {
    return request({
        url: '/api/course/search',
        method: 'post',
        data
    });
};
export const login = (data) => {
    return request({
        url: '/api/user/login',
        method: 'post',
        // params:data,
        data: data
    });
};
